package com.wk.code.wkserver.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wk.code.wkserver.entity.Demand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wk.code.wkserver.request.admin.AdminDemandRequest;
import com.wk.code.wkserver.response.admin.DemandResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wq
 * @since 2021-08-15
 */
@Mapper
public interface DemandMapper extends BaseMapper<Demand> {


    /**
     * 分页
     *
     * @param page    page
     * @param request request
     * @return IPage<DemandResponse>
     */
    IPage<DemandResponse> pageList(IPage<Demand> page, @Param("request") AdminDemandRequest request);

}
